using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using OpenSocial.Net.People;

namespace OpenSocial.Net.Web.Sample
{
	public partial class Default : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			ulong userID = 1;

			if (string.IsNullOrEmpty(Request["uid"]) == false)
			{
				userID = ulong.Parse(Request["uid"]);
			}

			PeopleProvider provider = new PeopleProvider("http://www.ecademy.com");
			Person person = provider.GetPerson(userID);
			Person1.UserID = userID;
			Person1.PersonObject = person;

			FriendList flist = provider.GetFriendList(userID);
			FriendList1.FriendListObject = flist;
		}
	}
}
